<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://unpkg.com/vue@next"></script>
  <style>
  </style>
</head>
<body>
  <div id="app">
    {{ search }}
    <custom-input v-model="search"></custom-input>
  </div>

  <script>
    const app = Vue.createApp({
      setup() {
        const search = Vue.ref('hello')
        return { search }
      }
      
    })
    
    app.component('custom-input', {
      props: {
        modelValue: String
      },
      render() {
        return Vue.h('input', {
          modelValue: this.modelValue,
          'onUpdate:modelValue': value => this.$emit('update:modelValue', value)
        })
      }
    })

    app.mount('#app')
  </script>
</body>
</html>